﻿using System;
using System.Collections;
using System.Data;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace BrsdServer
{
    /// <summary>
    /// $codebehindclassname$ 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class maindel : IHttpHandler
    {

        dnsInfoBLL dns = new dnsInfoBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string username = main.userName;
            //string userName = (String)Session["nameSession"];
            string mac = context.Request["mac"];
            if (username=="Admin")
            {
                dns.Delete(mac);
            }
            context.Response.Write(username);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
